<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title></title>
    <link rel="stylesheet" th:href="@{/lib/layui/layui.css}">
    <link rel="stylesheet" th:href="@{/css/admin-style.css}">

</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-logo"></div>
        <ul class="layui-nav layui-layout-left">

        </ul>
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item">

            </li>
        </ul>
    </div>

    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <div  th:include="admin/include-admin-slide::html"></div>
        </div>
    </div>

    <div class="layui-body">
        <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
            <legend>视频管理</legend>
        </fieldset>

        <table class="layui-table">

            <thead>
            <tr>
                <th>ID</th>
                <th>标题</th>
                <th>类型</th>
                <th>Tag</th>
                <th>发布时间</th>
                <th>视频地址</th>
                <th>视频封面</th>
                <th>发布人</th>
                <th>描述</th>
                <th>点赞数量</th>
                <th>观看数量</th>
            </tr>
            </thead>
            <tbody>
            <tr th:each="item:${courseSet}">
                <th th:text="${item.getId()}"></th>
                <th th:text="${item.getCourseTitle()}">标题</th>
                <th th:text="${item.getCourseType()}">类型</th>
                <th th:text="${item.getCourseTag()}">Tag</th>
                <th th:text="${item.getCourseReleaseTimestamp()}">发布时间</th>
                <th><a target="_blank" th:href="'/res/video/'+${item.getVideoUrl()}" th:text="${item.getCourseTitle()}"></a></th>
                <th ><img th:src="@{'/res/images/'+${item.getVideoCover()}}"></th>
                <th th:text="${item.getPushName()}">发布人</th>
                <th th:text="${item.getCourseDescribe()}">描述</th>
                <th th:text="${item.getLikeNumber()}">点赞数量</th>
                <th th:text="${item.getWatchNumber()}">观看数量</th>
            </tr>

            </tbody>
        </table>
    </div>

    <div class="layui-footer">
    </div>
</div>
<script th:src="@{/static/lib/layui/layui.js}"></script>
<script th:src="@{/static/lib/jquery/jquery-1.7.2.min.js}"></script>
<script>


</script>
</body>
</html>